import http from '@/utils/http'

const baseURL  = '/index'
/**
 * 验证兑换卡信息
 */
export function exchangeCheckApi(data) {
  return http.post(baseURL + '/exchangeCheck', data, { custom: { loading: true } });
}

/**
 * 根据卡id获取卡信息
 */
export function fetchCardInfoApi(id) {
  return http.get(baseURL + '/fetchCardInfo', { id }, { custom: { loading: true } });
}